nanomsg: upgrade 1.2.1 -> 1.2.2
PATCH 1/4 nanomsg: upgrade 1.2.1 -> 1.2.2
ChangeLog:
https://github.com/nanomsg/nanomsg/releases/tag/1.2.2
Drop 0001-allow-build-with-cmake-4.patch as the issue has been fixed upstream.
---
.../0001-allow-build-with-cmake-4.patch | 57 -------------------
.../{nanomsg_1.2.1.bb => nanomsg_1.2.2.bb} | 5 +-
2 files changed, 2 insertions(+), 60 deletions(-)
delete mode 100644 meta-networking/recipes-connectivity/nanomsg/nanomsg/0001-allow-build-with-cmake-4.patch
rename meta-networking/recipes-connectivity/nanomsg/{nanomsg_1.2.1.bb => nanomsg_1.2.2.bb} (89%)meta-networking/recipes-connectivity/nanomsg/nanomsg/0001-allow-build-with-cmake-4.patch deleted +0 -57
@@ -1,57 +0,0 @@ -From 2e293eb9d3753ef87a5e05bc6ac270add0ad8fa8 Mon Sep 17 00:00:00 2001 -From: Alper Ak <[email protected]> -Date: Wed, 9 Jul 2025 13:25:54 +0300 -Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ - compatibility - -Fix: - -| CMake Error at CMakeLists.txt:27 (cmake_minimum_required): -| Compatibility with CMake < 3.5 has been removed from CMake. -| -| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax -| to tell CMake that the project requires at least <min> but has been updated -| to work with policies introduced by <max> or earlier. -| -| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. -| -| -| -- Configuring incomplete, errors occurred! - -Upstream-Status: Submitted [https://github.com/nanomsg/nanomsg/pull/1123] - -Signed-off-by: Alper Ak <[email protected]> ---- - CMakeLists.txt | 2 +- - demo/CMakeLists.txt | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index a9ae6a24..2e93724d 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -24,7 +24,7 @@ - # IN THE SOFTWARE. - # - --cmake_minimum_required (VERSION 2.8.12) -+cmake_minimum_required (VERSION 3.5) - - project (nanomsg C) - include (CheckFunctionExists) -diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt -index 4807f160..5ea96c4a 100644 ---- a/demo/CMakeLists.txt -+++ b/demo/CMakeLists.txt -@@ -6,7 +6,7 @@ - # - # Thanks for the idea goes to @maddouri. - # --cmake_minimum_required (VERSION 2.8.7) -+cmake_minimum_required (VERSION 3.5) - - project(nanomsg-demo) - --- -2.43.0 -
meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.2.bb renamed from meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.1.bb +2 -3
@@ -10,10 +10,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=587b3fd7fd291e418ff4d2b8f3904755" SECTION = "libs/networking" SRC_URI = "git://github.com/nanomsg/nanomsg.git;protocol=https;branch=master \ - file://0001-allow-build-with-cmake-4.patch" - -SRCREV = "fc3f684a80151a3319446fc96083a9ff384ee4fe" + " +SRCREV = "ccd7f20c1b756f7041598383baffcdc326246db7" inherit cmake pkgconfig
Signature · 1 line
2.34.1
PATCH 2/4 nanomsg: add ptest
Ptest results:
$ run-ptest PASS: async_shutdown PASS: block PASS: bug328 PASS: bug777 PASS: bus PASS: cmsg PASS: device PASS: device4 PASS: device5 PASS: device6 PASS: device7 PASS: domain PASS: emfile PASS: hash PASS: inproc PASS: inproc_shutdown PASS: iovec PASS: ipc PASS: ipc_shutdown PASS: ipc_stress PASS: list PASS: msg PASS: pair PASS: pipeline PASS: poll PASS: prio PASS: pubsub PASS: reqrep PASS: reqttl PASS: separation PASS: shutdown PASS: stats PASS: survey PASS: surveyttl PASS: symbol PASS: tcp PASS: tcp_shutdown PASS: term PASS: timeo PASS: trie PASS: ws PASS: ws_async_shutdown PASS: zerocopy
--- .../nanomsg/nanomsg/run-ptest | 16 ++++++++++++++++ .../nanomsg/nanomsg_1.2.2.bb | 17 +++++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 meta-networking/recipes-connectivity/nanomsg/nanomsg/run-ptest
meta-networking/recipes-connectivity/nanomsg/nanomsg/run-ptest new file +16 -0
@@ -0,0 +1,16 @@ +#!/bin/sh + +RET=0 +cd tests + +for t in $(ls *); do + ./$t + if [ $? -eq 0 ]; then + echo PASS: $t + else + echo FAIL: $t + RET=1 + fi +done + +exit $RET
meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.2.bb +15 -2
@@ -10,19 +10,32 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=587b3fd7fd291e418ff4d2b8f3904755" SECTION = "libs/networking" SRC_URI = "git://github.com/nanomsg/nanomsg.git;protocol=https;branch=master \ + file://run-ptest \ " SRCREV = "ccd7f20c1b756f7041598383baffcdc326246db7" -inherit cmake pkgconfig +inherit cmake pkgconfig ptest # nanomsg documentation generation requires asciidoctor, # not asciidoc, and currently there's no asciidoctor-native # recipe anywhere in openembedded-core or meta-openembedded -EXTRA_OECMAKE = " -DNN_ENABLE_DOC=OFF " +EXTRA_OECMAKE = " -DNN_ENABLE_DOC=OFF \ + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DNN_TESTS=ON', '', d)} \ + " # we don't want nanomsg-tools to be renamed to libnanomsg-tools DEBIAN_NOAUTONAME:${PN}-tools = "1" +do_install_ptest(){ + install -d ${D}/${PTEST_PATH}/tests + find ${B} -maxdepth 1 -type f -executable \ + ! -name "*_lat" \ + ! -name "*_thr" \ + ! -name "nanocat" \ + ! -name "libnanomsg.so*" \ + -exec install {} ${D}${PTEST_PATH}/tests/ \; +} + PACKAGES =+ "${PN}-tools" FILES:${PN}-tools = "${bindir}/*"
Signature · 1 line
2.34.1
PATCH 3/4 nng: upgrade 1.7.3 -> 1.11
In reply to Yi ZhaoChangeLog:
https://github.com/nanomsg/nng/releases/tag/v1.11
https://github.com/nanomsg/nng/releases/tag/v1.10
https://github.com/nanomsg/nng/releases/tag/v1.9.0
https://github.com/nanomsg/nng/releases/tag/v1.8.0
---
.../nanomsg/{nng_1.7.3.bb => nng_1.11.bb} | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
rename meta-networking/recipes-connectivity/nanomsg/{nng_1.7.3.bb => nng_1.11.bb} (85%)meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb renamed from meta-networking/recipes-connectivity/nanomsg/nng_1.7.3.bb +2 -3
@@ -5,9 +5,8 @@ SECTION = "libs/networking" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3" -SRC_URI = "git://github.com/nanomsg/nng.git;branch=main;protocol=https" -SRCREV = "85fbe7f9e4642b554d0d97f2e3ff2aa12978691a" - +SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https" +SRCREV = "84aa701f42968bf536141a24e826da66963b571a" inherit cmake pkgconfig
Signature · 1 line
2.34.1
PATCH 4/4 nng: add ptest
In reply to Yi ZhaoPtest results:
$ run-ptest PASS: compat_block PASS: compat_bug777 PASS: compat_bus PASS: compat_cmsg PASS: compat_device PASS: compat_iovec PASS: compat_msg PASS: compat_options PASS: compat_pair PASS: compat_pipeline PASS: compat_poll PASS: compat_reqrep PASS: compat_reqttl PASS: compat_shutdown PASS: compat_survey PASS: compat_surveyttl PASS: cplusplus_pair PASS: device PASS: files FAIL: httpclient PASS: httpserver PASS: inproc PASS: ipc PASS: ipcsupp PASS: multistress PASS: nonblock PASS: options PASS: pipe PASS: pollfd PASS: reqctx PASS: reqstress PASS: scalability PASS: synch PASS: tcp FAIL: tcp6 PASS: tcpsupp PASS: tls PASS: ws PASS: wss
--- .../recipes-connectivity/nanomsg/nng/run-ptest | 16 ++++++++++++++++ .../recipes-connectivity/nanomsg/nng_1.11.bb | 16 +++++++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 meta-networking/recipes-connectivity/nanomsg/nng/run-ptest
meta-networking/recipes-connectivity/nanomsg/nng/run-ptest new file +16 -0
@@ -0,0 +1,16 @@ +#!/bin/sh + +RET=0 +cd tests + +for t in $(ls *); do + ./$t > /dev/null + if [ $? -eq 0 ]; then + echo PASS: $t + else + echo FAIL: $t + RET=1 + fi +done + +exit $RET
meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb +13 -3
@@ -5,16 +5,26 @@ SECTION = "libs/networking" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3" -SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https" +SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https \ + file://run-ptest \ + " + SRCREV = "84aa701f42968bf536141a24e826da66963b571a" -inherit cmake pkgconfig +inherit cmake pkgconfig ptest -EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DNNG_ENABLE_NNGCAT=ON" +EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DNNG_ENABLE_NNGCAT=ON \ + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DNNG_TESTS=ON', '', d)} \ + " PACKAGECONFIG ??= "" PACKAGECONFIG[mbedtls] = "-DNNG_ENABLE_TLS=ON,-DNNG_ENABLE_TLS=OFF,mbedtls" +do_install_ptest(){ + install -d ${D}/${PTEST_PATH}/tests + find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \; +} + PACKAGES =+ "${PN}-tools" FILES:${PN}-tools = "${bindir}/*"
Signature · 1 line
2.34.1
Re: [oe] [meta-networking][PATCH 4/4] nng: add ptest
Quoted 34 lines · Yi Zhao via lists.openembedded.org
Ptest results:
$ run-ptest PASS: compat_block PASS: compat_bug777 PASS: compat_bus PASS: compat_cmsg PASS: compat_device PASS: compat_iovec PASS: compat_msg PASS: compat_options PASS: compat_pair PASS: compat_pipeline PASS: compat_poll PASS: compat_reqrep PASS: compat_reqttl PASS: compat_shutdown PASS: compat_survey PASS: compat_surveyttl PASS: cplusplus_pair PASS: device PASS: files FAIL: httpclient PASS: httpserver PASS: inproc PASS: ipc PASS: ipcsupp PASS: multistress PASS: nonblock PASS: options PASS: pipe PASS: pollfd PASS: reqctx PASS: reqstress
Quoted 9 lines
PASS: scalability PASS: synch PASS: tcp FAIL: tcp6 PASS: tcpsupp PASS: tls PASS: ws PASS: wss
There are couple of failures here. Have you
Looked into them ? It would be good to document
That for future if we get back to fixing them
Quoted 86 lines
Signed-off-by Yi Zhao <[email protected]>--- .../recipes-connectivity/nanomsg/nng/run-ptest | 16 ++++++++++++++++ .../recipes-connectivity/nanomsg/nng_1.11.bb | 16 +++++++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644meta-networking/recipes-connectivity/nanomsg/nng/run-ptest
meta-networking/recipes-connectivity/nanomsg/nng/run-ptest new file +16
-0@@ -0,0 +1,16 @@ +#!/bin/sh + +RET=0 +cd tests + +for t in $(ls *); do + ./$t > /dev/null + if [ $? -eq 0 ]; then + echo PASS: $t + else + echo FAIL: $t + RET=1 + fi +done + +exit $RETmeta-networking/recipes-connectivity/nanomsg/nng_1.11.bb +0
-0@@ -5,16 +5,26 @@ SECTION = "libs/networking" LICENSE = "MIT" LIC_FILES_CHKSUM ="file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3"
meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb +1
-1-SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https" +SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https\
meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb +6
-2+ file://run-ptest \ + " + SRCREV = "84aa701f42968bf536141a24e826da66963b571a" -inherit cmake pkgconfig +inherit cmake pkgconfig ptest -EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DNNG_ENABLE_NNGCAT=ON" +EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DNNG_ENABLE_NNGCAT=ON \ + ${@bb.utils.contains('PTEST_ENABLED', '1','-DNNG_TESTS=ON', '', d)} \
+ "PACKAGECONFIG ??= ""
PACKAGECONFIG[mbedtls] =
"-DNNG_ENABLE_TLS=ON,-DNNG_ENABLE_TLS=OFF,mbedtls"meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb +3
-0+do_install_ptest(){ + install -d ${D}/${PTEST_PATH}/tests + find ${B}/tests -type f -executable -exec install {}${D}${PTEST_PATH}/tests/ \;
meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb +2
-1+} + PACKAGES =+ "${PN}-tools" FILES:${PN}-tools = "${bindir}/*" --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#123329):
https://lists.openembedded.org/g/openembedded-devel/message/123329
Mute This Topic: https://lists.openembedded.org/mt/117190746/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-networking][PATCH 4/4] nng: add ptest
Quoted 19 lines · Khem Raj
On Sat, Jan 10, 2026 at 5:38 AM Yi Zhao via lists.openembedded.org <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-H_flajXg$> <[email protected]> wrote:
Ptest results: $ run-ptest PASS: compat_block PASS: compat_bug777 PASS: compat_bus PASS: compat_cmsg PASS: compat_device PASS: compat_iovec PASS: compat_msg PASS: compat_options PASS: compat_pair PASS: compat_pipeline PASS: compat_poll PASS: compat_reqrep
Quoted 9 lines
PASS: compat_reqttl
PASS: compat_shutdown
PASS: compat_survey
PASS: compat_surveyttl
PASS: cplusplus_pair
PASS: device
PASS: files
FAIL: httpclientThis case attempts to retrieve the Content-Length field from the HTTP header of http://example.com/,
but because the site uses chunked transfer encoding, the Content-Length field is not present, leading to an assertion failure.
Quoted 7 lines
PASS: httpserver
PASS: inproc
PASS: ipc
PASS: ipcsupp
PASS: multistress
PASS: nonblock
PASS: options
Quoted 9 lines
PASS: pipe
PASS: pollfd
PASS: reqctx
PASS: reqstress
PASS: scalability
PASS: synch
PASS: tcp
FAIL: tcp6
This is because the ipv6 address for eth0 is not configured on qemu image.
It can pass on genericx86-64 BSP.
I will update commit message in V2.
//Yi
Quoted 115 lines
PASS: tcpsupp
PASS: tls
PASS: ws
PASS: wssThere are couple of failures here. Have you
Looked into them ? It would be good to document
That for future if we get back to fixing themSigned-off-by: Yi Zhao <[email protected]> --- .../recipes-connectivity/nanomsg/nng/run-ptest | 16 ++++++++++++++++ .../recipes-connectivity/nanomsg/nng_1.11.bb <https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$> | 16 +++++++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 meta-networking/recipes-connectivity/nanomsg/nng/run-ptest diff --git a/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest b/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest new file mode 100644 index 0000000000..57888a77c9 --- /dev/null +++ b/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest @@ -0,0 +1,16 @@ +#!/bin/sh + +RET=0 +cd tests + +for t in $(ls *); do + ./$t > /dev/null + if [ $? -eq 0 ]; then + echo PASS: $t + else + echo FAIL: $t + RET=1 + fi +done + +exit $RET diff --git a/meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb <https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$> b/meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb <https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$> index e59b7f34e2..031827a5c0 100644 --- a/meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb <https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$> +++ b/meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb <https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$> @@ -5,16 +5,26 @@ SECTION = "libs/networking" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3" -SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https <https://urldefense.com/v3/__http://github.com/nanomsg/nng.git;branch=stable;protocol=https__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-FaSIM_Yw$>" +SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https <https://urldefense.com/v3/__http://github.com/nanomsg/nng.git;branch=stable;protocol=https__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-FaSIM_Yw$> \ + file://run-ptest \ + " + SRCREV = "84aa701f42968bf536141a24e826da66963b571a" -inherit cmake pkgconfig +inherit cmake pkgconfig ptest -EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DNNG_ENABLE_NNGCAT=ON" +EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DNNG_ENABLE_NNGCAT=ON \ + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DNNG_TESTS=ON', '', d)} \ + " PACKAGECONFIG ??= "" PACKAGECONFIG[mbedtls] = "-DNNG_ENABLE_TLS=ON,-DNNG_ENABLE_TLS=OFF,mbedtls" +do_install_ptest(){ + install -d ${D}/${PTEST_PATH}/tests + find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \; +} + PACKAGES =+ "${PN}-tools" FILES:${PN}-tools = "${bindir}/*" -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#123329): https://lists.openembedded.org/g/openembedded-devel/message/123329 <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/message/123329__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-EbZZaBRw$> Mute This Topic: https://lists.openembedded.org/mt/117190746/1997914 <https://urldefense.com/v3/__https://lists.openembedded.org/mt/117190746/1997914__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-E4QcInoA$> Group Owner: [email protected] <mailto:openembedded-devel%[email protected]> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/unsub__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-Edgf-LVw$> [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-